Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hanging goroutine in get fileArchive handler #8973

Merged
merged 1 commit into from
May 13, 2022

Conversation

Jorropo
Copy link
Contributor

@Jorropo Jorropo commented May 13, 2022

Fixes #8957

The context was only checked while reading data.
Not while writing data to the http connection.
So since the data flow through an io.Pipe the closing didn't flowed through and left the writer open hanging.

Co-authored-by: Antonio Navarro Perez antnavper@gmail.com

Fixes ipfs#8957

The context was only checked while reading data.
Not while writing data to the http connection.
So since the data flow through an io.Pipe the closing didn't flowed through and left the writer open hanging.

Co-authored-by: Antonio Navarro Perez <antnavper@gmail.com>
@Jorropo Jorropo enabled auto-merge (rebase) May 13, 2022 16:15
@Jorropo Jorropo merged commit 7892cc9 into ipfs:master May 13, 2022
@Jorropo Jorropo deleted the fix/8957 branch May 13, 2022 16:25
@Jorropo Jorropo restored the fix/8957 branch December 12, 2022 22:32
@Jorropo Jorropo deleted the fix/8957 branch December 12, 2022 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TarWriter.WriteFile stuck on select when writing to io.pipe
2 participants